<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>메인화면 입니다.</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
</head>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
<body>
	<c:import url="../index/header.jsp"/><p><p>
	
	<div style="width: 900px; margin: auto; margin-top: 250px;" align="center">
		<span style="width: 300px; float: left;" id="scoreTop">
			<table>
				<tr>
					<th>
						총점 TOP
					</th>
				</tr>
				<tr>
					<td>
						<img alt="" src="../img/logo/${requestScope.indexReturn.scoreTop.majorunit_logo}">
					</td>
				</tr>
				<tr>
					<td>
						${requestScope.indexReturn.scoreTop.majorunit_name}
					</td>
				</tr>
				<tr>
					<td>
						${requestScope.indexReturn.scoreTop.scoreAvg}
					</td>
				</tr>
			</table>
		</span>
		
		<span style="width: 300px; float: left;" id="jobTop">
			<table>
				<tr>
					<th>
						취업율 TOP
					</th>
				</tr>
				<tr>
					<td>
						<img alt="" src="../img/logo/${requestScope.indexReturn.jobTop.majorunit_logo}">
					</td>
				</tr>
				<tr>
					<td>
						${requestScope.indexReturn.jobTop.majorunit_name}
					</td>
				</tr>
				<tr>
					<td>
						${requestScope.indexReturn.jobTop.scoreAvg}
					</td>
				</tr>
			</table>
		</span>
		
		<span style="width: 300px; float: left;" id="professorTop">
			<table>
				<tr>
					<th>
						교수진 TOP
					</th>
				</tr>
				<tr>
					<td>
						<img alt="" src="../img/logo/${requestScope.indexReturn.professorTop.majorunit_logo}">
					</td>
				</tr>
				<tr>
					<td>
						${requestScope.indexReturn.professorTop.majorunit_name}
					</td>
				</tr>
				<tr>
					<td>
						${requestScope.indexReturn.professorTop.scoreAvg}
					</td>
				</tr>
			</table>
		</span>
		
		<span style="width: 300px; float: left;" id="facilityTop">
			<table>
				<tr>
					<th>
						시설 TOP
					</th>
				</tr>
				<tr>
					<td>
						<img alt="" src="../img/logo/${requestScope.indexReturn.facilityTop.majorunit_logo}">
					</td>
				</tr>
				<tr>
					<td>
						${requestScope.indexReturn.facilityTop.majorunit_name}
					</td>
				</tr>
				<tr>
					<td>
						${requestScope.indexReturn.facilityTop.scoreAvg}
					</td>
				</tr>
			</table>
		</span>
		
		<span style="width: 300px; float: left;" id="scholarshipTop">
			<table>
				<tr>
					<th>
						장학금 TOP
					</th>
				</tr>
				<tr>
					<td>
						<img alt="" src="../img/logo/${requestScope.indexReturn.scholarshipTop.majorunit_logo}">
					</td>
				</tr>
				<tr>
					<td>
						${requestScope.indexReturn.scholarshipTop.majorunit_name}
					</td>
				</tr>
				<tr>
					<td>
						${requestScope.indexReturn.scholarshipTop.scoreAvg}
					</td>
				</tr>
			</table>
		</span>
		
		<span style="width: 300px; float: left;" id="awarenessTop">
			<table>
				<tr>
					<th>
						인지도 TOP
					</th>
				</tr>
				<tr>
					<td>
						<img alt="" src="../img/logo/${requestScope.indexReturn.awarenessTop.majorunit_logo}">
					</td>
				</tr>
				<tr>
					<td>
						${requestScope.indexReturn.awarenessTop.majorunit_name}
					</td>
				</tr>
				<tr>
					<td>
						${requestScope.indexReturn.awarenessTop.scoreAvg}
					</td>
				</tr>
			</table>
		</span>
		
		<span style="width: 300px; float: left;" id="regionTop">
			<table>
				<tr>
					<th>
						${requestScope.indexReturn.regionTop.univ.region.region_name} TOP
					</th>
				</tr>
				<tr>
					<td>
						<img alt="" src="../img/logo/${requestScope.indexReturn.regionTop.majorunit_logo}">
					</td>
				</tr>
				<tr>
					<td>
						${requestScope.indexReturn.regionTop.majorunit_name}
					</td>
				</tr>
				<tr>
					<td>
						${requestScope.indexReturn.regionTop.scoreAvg}
					</td>
				</tr>
			</table>
		</span>
		
		<span style="width: 300px; float: left;" id="lineTop">
			<table>
				<tr>
					<th>
						${requestScope.indexReturn.lineTop.subline.subline_name} TOP
					</th>
				</tr>
				<tr>
					<td>
						<img alt="" src="../img/logo/${requestScope.indexReturn.lineTop.majorunit_logo}">
					</td>
				</tr>
				<tr>
					<td>
						${requestScope.indexReturn.lineTop.majorunit_name}
					</td>
				</tr>
				<tr>
					<td>
						${requestScope.indexReturn.lineTop.scoreAvg}
					</td>
				</tr>
			</table>
		</span>
		<c:if test="${requestScope.indexReturn.interestNew!=null}">
			<span style="width: 300px; float: left;" id="interestNew">
				<table>
					<tr>
						<th>
							관심학과 최신 리뷰
						</th>
					</tr>
					<tr>
						<td>
							<img alt="" src="../img/logo/${requestScope.indexReturn.interestNew.majorunit.univ.univ_logo}">
						</td>
					</tr>
					<tr>
						<td>
							${requestScope.indexReturn.interestNew.majorunit.univ.univ_name}
							${requestScope.indexReturn.interestNew.majorunit.college.college_name}
							${requestScope.indexReturn.interestNew.majorunit.faculty.faculty_name}
							${requestScope.indexReturn.interestNew.majorunit.major.major_name}
						</td>
					</tr>
					<tr>
						<td>
							${requestScope.indexReturn.interestNew.review_title}
						</td>
					</tr>
				</table>
			</span>
		</c:if>
	</div>
	
</body>
</html>